home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PAddWord.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  886b  |  34 lines

  1. /*
  2.  *--- PAddWord.cpp --------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 3:29 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PAddWord.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PAddWord.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PAddWord::PAddWord(const char * sWord)
  16. {
  17.     PRequestBuf request(strlen(sWord) + 4);
  18.     
  19.     request << sWord << (short) 0;
  20.  
  21.     PCommand command(pm_addword, request);
  22. }
  23.  
  24. PAddWord::PAddWord(const char * sWord, const char * sLanguage)
  25. {
  26.     PRequestBuf request(strlen(sWord) + strlen(sLanguage) + 4);
  27.     
  28.     request << sWord << sLanguage;
  29.  
  30.     PCommand command(pm_addword, request);
  31. }
  32.  
  33. // end of PAddWord.cpp
  34.